
<!DOCTYPE HTML>
<html lang="" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>Nginx · GitBook</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.3">
        
        
        
    
    <link rel="stylesheet" href="gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="gitbook/gitbook-plugin-highlight/website.css">
                
            
                
                <link rel="stylesheet" href="gitbook/gitbook-plugin-search/search.css">
                
            
                
                <link rel="stylesheet" href="gitbook/gitbook-plugin-fontsettings/website.css">
                
            
        

    

    
        
    
        
    
        
    
        
    
        
    
        
    

        
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="gitbook/images/favicon.ico" type="image/x-icon">

    
    <link rel="next" href="untitled.html" />
    
    
    <link rel="prev" href="docker/docker-an-zhuang.html" />
    

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="Type to search" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    

    

    
        
        
    
        <li class="chapter " data-level="1.1" data-path="./">
            
                <a href="./">
            
                    
                    简介页
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="arcgis-api-for-javascript4.x/">
            
                <a href="arcgis-api-for-javascript4.x/">
            
                    
                    ArcGIS API for JavaScript4.x
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.2.1" data-path="arcgis-api-for-javascript4.x/xue-xi-he-kai-fa-ji-qiao.html">
            
                <a href="arcgis-api-for-javascript4.x/xue-xi-he-kai-fa-ji-qiao.html">
            
                    
                    学习技巧
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.2" data-path="arcgis-api-for-javascript4.x/kai-fa-ji-qiao.html">
            
                <a href="arcgis-api-for-javascript4.x/kai-fa-ji-qiao.html">
            
                    
                    开发技巧
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.3" data-path="arcgis-api-for-javascript4.x/mapimagelayer.html">
            
                <a href="arcgis-api-for-javascript4.x/mapimagelayer.html">
            
                    
                    MapImageLayer
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.4" data-path="arcgis-api-for-javascript4.x/featurelayer.html">
            
                <a href="arcgis-api-for-javascript4.x/featurelayer.html">
            
                    
                    FeatureLayer
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.5" data-path="arcgis-api-for-javascript4.x/graphiclayer.html">
            
                <a href="arcgis-api-for-javascript4.x/graphiclayer.html">
            
                    
                    GraphicLayer
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.6" data-path="arcgis-api-for-javascript4.x/renderer.html">
            
                <a href="arcgis-api-for-javascript4.x/renderer.html">
            
                    
                    Renderer
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.7" data-path="arcgis-api-for-javascript4.x/symbol.html">
            
                <a href="arcgis-api-for-javascript4.x/symbol.html">
            
                    
                    2DSymbol
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.8" data-path="arcgis-api-for-javascript4.x/di-tu-shi-jian.html">
            
                <a href="arcgis-api-for-javascript4.x/di-tu-shi-jian.html">
            
                    
                    地图事件之地图状态监听
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.9" data-path="arcgis-api-for-javascript4.x/di-tu-shi-jian-zhi-dian-ji.html">
            
                <a href="arcgis-api-for-javascript4.x/di-tu-shi-jian-zhi-dian-ji.html">
            
                    
                    地图事件之点击
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.10" data-path="arcgis-api-for-javascript4.x/mo-ni-dian-yun-dong-tu-ceng.html">
            
                <a href="arcgis-api-for-javascript4.x/mo-ni-dian-yun-dong-tu-ceng.html">
            
                    
                    模拟点运动图层
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.11" data-path="arcgis-api-for-javascript4.x/untitled.html">
            
                <a href="arcgis-api-for-javascript4.x/untitled.html">
            
                    
                    集成echarts实现迁徙图特效
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.12" data-path="arcgis-api-for-javascript4.x/shi-xian-dian-ju-he-xiao-guo.html">
            
                <a href="arcgis-api-for-javascript4.x/shi-xian-dian-ju-he-xiao-guo.html">
            
                    
                    实现点聚合效果
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.3" data-path="arcgis-api-for-javascript3.x.html">
            
                <a href="arcgis-api-for-javascript3.x.html">
            
                    
                    ArcGIS API for JavaScript3.x
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4" data-path="vue.html">
            
                <a href="vue.html">
            
                    
                    VUE
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5" data-path="docker/">
            
                <a href="docker/">
            
                    
                    Docker
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.5.1" data-path="docker/docker-shi-yong-nginx-dai-li-zhuan-fa-ssr.html">
            
                <a href="docker/docker-shi-yong-nginx-dai-li-zhuan-fa-ssr.html">
            
                    
                    Docker使用Nginx代理转发SSR
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.2" data-path="docker/docker-da-jian-ge-ren-wordpress-wang-zhan.html">
            
                <a href="docker/docker-da-jian-ge-ren-wordpress-wang-zhan.html">
            
                    
                    Docker搭建个人wordpress网站
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.3" data-path="docker/docker-an-zhuang.html">
            
                <a href="docker/docker-an-zhuang.html">
            
                    
                    Docker安装
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter active" data-level="1.6" data-path="nginx.html">
            
                <a href="nginx.html">
            
                    
                    Nginx
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7" data-path="untitled.html">
            
                <a href="untitled.html">
            
                    
                    小技巧
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8" data-path="ci-cd.html">
            
                <a href="ci-cd.html">
            
                    
                    CI/CD
            
                </a>
            

            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            Published with GitBook
        </a>
    </li>
</ul>


                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href="." >Nginx</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <h1 id="nginx">Nginx</h1>
<p>Nginx&#x89E3;&#x6790;&#xFF0C;&#x8F6C;&#x53D1;&#xFF0C;&#x4EE3;&#x7406;</p>
<p>&#x670D;&#x52A1;&#x5668;&#x89E3;&#x6790;&#x57DF;&#x540D;</p>
<p>Nginx&#x76EE;&#x5F55;&#x4E0B;&#x6709;nginx.conf&#x6587;&#x4EF6;&#x91CC;&#x9762;&#x662F;nginx&#x7684;&#x914D;&#x7F6E;&#xFF0C;&#x5176;&#x4E2D;&#x7684;include /etc/nginx/conf.d/*.conf;  &#x662F;&#x5C06;conf.d&#x7684;&#x76EE;&#x5F55;&#x4E0B;&#x7684;&#x914D;&#x7F6E;&#x6587;&#x4EF6;.conf &#x5BFC;&#x5165;&#x5230;&#x603B;&#x7684;&#x914D;&#x7F6E;&#x4E2D;</p>
<p>&#x7B80;&#x5355;&#x7684;&#x57DF;&#x540D;&#x89E3;&#x6790;&#x5982;&#x4E0B;</p>
<pre><code class="lang-text">server {
  listen 80;//&#x76D1;&#x542C;80&#x7AEF;&#x53E3;
  server_name wwww.whuwhx.top;//&#x76D1;&#x542C;&#x57DF;&#x540D;&#x89E3;&#x6790;

  location / {
    proxy_pass http://127.0.0.1:8001;//&#x4EE3;&#x7406;&#x5230;&#x672C;&#x673A;&#x7684;8001&#x7AEF;&#x53E3;
  }

}
</code></pre>
<table>
<thead>
<tr>
<th style="text-align:left"></th>
<th style="text-align:left"></th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align:left">&#x540D;&#x79F0;</td>
<td style="text-align:left">&#x547D;&#x4EE4;</td>
</tr>
<tr>
<td style="text-align:left">&#x542F;&#x52A8;nginx</td>
<td style="text-align:left">start nginx</td>
</tr>
<tr>
<td style="text-align:left">&#x4FEE;&#x6539;&#x914D;&#x7F6E;&#x540E;&#x91CD;&#x65B0;&#x52A0;&#x8F7D;&#x751F;&#x6548;</td>
<td style="text-align:left">nginx -s reload</td>
</tr>
<tr>
<td style="text-align:left">&#x91CD;&#x65B0;&#x6253;&#x5F00;&#x65E5;&#x5FD7;&#x6587;&#x4EF6;</td>
<td style="text-align:left">nginx -s reopen</td>
</tr>
<tr>
<td style="text-align:left">&#x6D4B;&#x8BD5;nginx&#x914D;&#x7F6E;&#x6587;&#x4EF6;&#x662F;&#x5426;&#x6B63;&#x786E;</td>
<td style="text-align:left">nnginx -t -c nginx.conf</td>
</tr>
<tr>
<td style="text-align:left">&#x5173;&#x95ED;nginx &#xFF1A;&#x5FEB;&#x901F;&#x505C;&#x6B62;</td>
<td style="text-align:left">nginx nginx -s stop</td>
</tr>
<tr>
<td style="text-align:left">&#x5B8C;&#x6574;&#x6709;&#x5E8F;&#x7684;&#x505C;&#x6B62;</td>
<td style="text-align:left">nginx nginx -s quit</td>
</tr>
</tbody>
</table>

                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                
            </div>

            
                
                <a href="docker/docker-an-zhuang.html" class="navigation navigation-prev " aria-label="Previous page: Docker安装">
                    <i class="fa fa-angle-left"></i>
                </a>
                
                
                <a href="untitled.html" class="navigation navigation-next " aria-label="Next page: 小技巧">
                    <i class="fa fa-angle-right"></i>
                </a>
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"Nginx","level":"1.6","depth":1,"next":{"title":"小技巧","level":"1.7","depth":1,"path":"untitled.md","ref":"untitled.md","articles":[]},"previous":{"title":"Docker安装","level":"1.5.3","depth":2,"path":"docker/docker-an-zhuang.md","ref":"docker/docker-an-zhuang.md","articles":[]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":[],"pluginsConfig":{"highlight":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"nginx.md","mtime":"2019-09-27T03:24:31.193Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2019-09-30T03:42:42.849Z"},"basePath":".","book":{"language":""}});
        });
    </script>
</div>

        
    <script src="gitbook/gitbook.js"></script>
    <script src="gitbook/theme.js"></script>
    
        
        <script src="gitbook/gitbook-plugin-search/search-engine.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-search/search.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-lunr/lunr.min.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-lunr/search-lunr.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-sharing/buttons.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    

    </body>
</html>

